﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="UpdateTinTuDong.ascx.vb" Inherits="Control_Raovat_UpdateTinTuDong" %>

<%@ Register TagPrefix="aspNewControls" Namespace="NewControls" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {

            setTimeout(function () {
                window.location.href = "UpTinTuDong.aspx";
            }, 30000);

        });
    }

</script>
<asp:UpdatePanel ID="uplProductTinTuDong" runat="server">
<ContentTemplate>
        <div class="BoxField">
            <div class="HeadTitle">
                <h3>
                    &nbsp;TIN TỰ ĐỘNG TRONG NGÀY (thời gian tự chạy là 5 phút)</h3>
                    <asp:Label ID="lblTongSo" runat="server"></asp:Label>
            </div>
            <div class="Error">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
            </div>

            <asp:GridView ID="grdShow" runat="server" AutoGenerateColumns="False" EmptyDataText="{Không có dữ liệu}"
                Width='99%' BorderWidth="1px" CssClass="GridBorder">
                <Columns>

                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="CheckAll" runat="server" AutoPostBack="True" onclick="CheckAll(this)"
                            Width="30px" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:CheckBox ID="chkItem" runat="server" />
                    </ItemTemplate>
                    <ItemStyle Width="5%" HorizontalAlign="Center" />
                </asp:TemplateField>
                                    
                    
                    <asp:TemplateField HeaderText="No">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblSTT" Text=''></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5%" HorizontalAlign="Left" />
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='Tiêu đề'>
                        <ItemTemplate>
                            <asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle Width='20%' CssClass='text_list_links' HorizontalAlign='Left' />
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='Người tạo'>
                        <ItemTemplate>
                            <asp:label ID="lblNguoiTao" runat="server"></asp:label>
                        </ItemTemplate>
                   </asp:TemplateField>

                    <asp:TemplateField HeaderText='Ngày up'>
                        <ItemTemplate>
                            <asp:label ID="lblNgayUp" runat="server"></asp:label>
                        </ItemTemplate>
                   </asp:TemplateField>

                    <asp:TemplateField HeaderText='Giờ up'>
                        <ItemTemplate>
                            <asp:label ID="lblGioUp" runat="server"></asp:label>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText='Đã up?'>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkRun" runat="server" Enabled="false" />
                        </ItemTemplate>
                     </asp:TemplateField>

                </Columns>
                <HeaderStyle Height="26px" HorizontalAlign="Left" CssClass="GridHeader" />
                <RowStyle CssClass="GridRow" Height="23px" />
                <AlternatingRowStyle CssClass="GridAlterRow" />
                <PagerStyle CssClass="GridPaged" HorizontalAlign="Right" Height="23px" />
                <PagerSettings Mode="Numeric" PageButtonCount="2" />
                <EmptyDataRowStyle CssClass="GridTextEmpty" HorizontalAlign="Center" />
            </asp:GridView>
            
            
            
        </div>


        <asp:Button ID="btnDelete" CssClass="btn" runat="server" Text="Xóa" />


        <div style="padding-top:5px">
        <asp:Button ID="btnUpdate" runat="server" Text="Chạy up tin" CssClass="btn"  />
</div>
</ContentTemplate>
</asp:UpdatePanel>
